package org.NooLab.structures.randomgraph;

public class RichEntityPosition {

	public static final int _ENTITY_WORD = 1;
	public static final int _ENTITY_SENTENCE = 2;
	public static final int _ENTITY_PARAGRAF = 3;
	public static final int _ENTITY_PAGE     = 4;
	
	public static final String _ENTITY_ALIAS_PARAGRAF = "$PARAGRAF$" ;
	public static final String _ENTITY_ALIAS_PAGE     = "$PAGE$" ;
	
	/** the "text" of the entity: the char, the word, or the sentence;
	 * higher entities like pages or paragraphs are indicated by the respective constants  */
	String  textualStr = "";
	
	/** the actual index of the entity */
	int 	index    = -1;
	
	/** "EntitySub" means: if word, then it is the pos by char; if sentence, then it is pos by word ;
	 *  such it contains the first item (e.g. word) in a sentence */
	int 	startByEntitySub = -1;
	
	/** last word (or sub-entity) in a sentence (entity) */
	int 	endByEntitySub   = -1;
	
	int type = _ENTITY_WORD;
	
	// ========================================================================
	public RichEntityPosition(){
		
		
	}
	// ========================================================================	

	public String getTextualStr() {
		return textualStr;
	}

	public void setTextualStr(String textualStr) {
		this.textualStr = textualStr;
	}

	 

	public int getStartByEntitySub() {
		return startByEntitySub;
	}

	public void setStartByEntitySub(int startByEntitySub) {
		this.startByEntitySub = startByEntitySub;
	}

	public int getEndByEntitySub() {
		return endByEntitySub;
	}

	public void setEndByEntitySub(int endByEntitySub) {
		this.endByEntitySub = endByEntitySub;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}
	
	
	
}
